package pwd.allen.construct.facade;

import pwd.allen.construct.common.IConnection;

/**
 * @author lenovo
 * @create 2021-05-21 14:24
 **/
public class ConnectionFacade {

    private IConnection mysqlConnection;
    private IConnection oracleConnection;

    public ConnectionFacade(IConnection mysqlConnection, IConnection oracleConnection) {
        this.mysqlConnection = mysqlConnection;
        this.oracleConnection = oracleConnection;
    }

    public void ping4Mysql(String host, int port, String dbName) {
        this.mysqlConnection.pingConnection(host, port, dbName);
    }
    public void ping4Oracle(String host, int port, String dbName) {
        this.oracleConnection.pingConnection(host, port, dbName);
    }
}
